package org.mifos.boss.domainmodel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.Size;

@Entity
@Table(name="USERMASTER")

public class User {
    	@Column(name="FIRSTNAME", nullable = false, length=20)
    	private String firstname;

    	@Column(name="LASTNAME", nullable = false, length=20)
    	private String lastname;

    	
        @Size(min = 1, max = 10)
    	@Column(name="USERID", nullable = false, length=10)
    	private String userid;
    	
    	
        @Size(min = 1, max = 10)
    	@Column(name="PASSWORD", nullable = false, length=10)
    	private String password;

        public String getFirstname() {
    		return firstname;
    	}
    	public String getLastname() {
    		return lastname;
    	}
    	public void setFirstname(String firstname) {
    		this.firstname = firstname;
    	}
    	public void setLastname(String lastname) {
    		this.lastname = lastname;
    	}
    	@Id
		public String getUserid() {
			return userid;
		}
		public void setUserid(String userid) {
			this.userid = userid;
		}
		public String getPassword() {
			return password;
		}
		public void setPassword(String password) {
			this.password = password;
		}
		    	
}
